package com.wangchao.administrator.zenmechi.ui.detailactivity;

import android.content.Context;
import android.widget.ImageView;

import com.wangchao.administrator.zenmechi.bean.goodsdetail.GoodsDetail;

import java.util.Map;

import rx.Subscriber;

/**
 * Created by My on 2016/10/19.
 */
public class DetailContract {
    public interface View{
        public void onSuccess(GoodsDetail goodsDetail);
        public void onFail(Exception e);
    }

    public interface Model{
        void getNetworkDate(Subscriber<GoodsDetail> subscriber, String id, Map<String, String> stringMap);
    }

    public interface Presenter{

        void getNetworkDate( String id, Map<String, String> stringMap);

        void loadingInmage(ImageView imageView, Context context, String urlString);
    }
}
